﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Jb.Web.ViewModels
{
    public class SavedSearchViewModel : BaseViewModel
    {        
        //[StringLength(350, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        //[Display(Name = "Include Keyword")]        
        //public String Keyword { get; set; }

        //[Display(Name = "Country")]
        //public int CountryID { get; set; }

        //[Display(Name = "State")]
        //public int StateID { get; set; }

        //[Display(Name = "City")]
        //public int CityID { get; set; }
                
        //[Display(Name = "Category")]
        //public int CategoryID { get; set; }

        ////[Display(Name = "Sub Category")]
        ////public int SubCategoryID { get; set; }

        //[Display(Name = "Posting Date")]
        //public String PostDate { get; set; }

        //[Display(Name = "Employee Type")]
        //public int EmployeeTypeID { get; set; }

        //[Display(Name = "Job Level")]
        //public int JobLevelID { get; set; }

        //[Display(Name = "Annual Salary Range")]
        //public decimal SalaryRange { get; set; }




        /////////////////////////////////////

        /// <summary>
        /// Gets or sets the ID
        /// </summary>
        public int ID { get; set; }

        [System.Web.Mvc.AllowHtml]
        [StringLength(150, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Keyword")]
        public String Keyword { get; set; }

        [Display(Name = "Country")]
        public int? CountryID { get; set; }

        [Display(Name = "State")]
        public int? StateID { get; set; }

        [Display(Name = "City")]
        public int? CityID { get; set; }

        [Display(Name = "Category")]
        public int? CategoryID { get; set; }

        [Display(Name = "Post Date")]
        public String PostDate { get; set; }

        [Display(Name = "Employee Type")]
        public int? EmployeeTypeID { get; set; }

        [Display(Name = "Job Level")]
        public int? JobLevelID { get; set; }

        [Display(Name = "Salary Range")]
        public decimal? SalaryRange { get; set; }

        //[Required(ErrorMessage = "Please Enter a Created On")]
        //[Display(Name = "Created On")]
        //public String CreatedOn { get; set; }

        //[Required(ErrorMessage = "Please Select a Job Seeker")]
        [Display(Name = "Job Seeker")]
        public int JobSeekerID { get; set; }

        [StringLength(8000, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "SQL")]
        public String SQL { get; set; }

        [Display(Name= "Result Set of the Executed Saved Search")]
        public Jb.Web.ViewModels.UtilityModels.ListConfig ResultSet { get; set; }

        public String PageNo { get; set; }

    }
}